package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `gorm:"type:varchar(11);not null;comment:手机号"`
	Password string `gorm:"type:varchar(32);not null;comment:密码"`
	Image    string `gorm:"varchar(200);not null;comment:图片"`
	Age      int    `gorm:"type:int;not null;coment:年龄"`
	Sex      string `gorm:"type:varchar(3);not null;comment:性别"`
	Address  string `gorm:"type:varchar(20);not null;comment:地址"`
	NickName string `gorm:"type:varchar(20);not null;comment:昵称"`
	RealName string `gorm:"type:varchar(20);not null;comment:真实名称"`
}
